set(LZ4_SRC_DIR ${PROJECT_ROOT}/lib/lz4)
set(LZ4_INC_DIR ${PROJECT_ROOT}/lib/lz4)

qelib_include_directories(${LZ4_INC_DIR})

qelib_sources(
    ${LZ4_SRC_DIR}/lz4.c
    ${LZ4_SRC_DIR}/lz4file.c
    ${LZ4_SRC_DIR}/lz4frame.c
    ${LZ4_SRC_DIR}/lz4hc.c
    ${LZ4_SRC_DIR}/xxhash.c
)

qelib_install_headers_ifdef(
    CONFIG_LIBLZ4
    ${LZ4_INC_DIR}/lz4.h
)